import request from '@/utils/request'

// 院区表列表
export function apiCampusLists(params: any) {
    return request.get({ url: '/campus/lists', params })
}

// 添加院区表
export function apiCampusAdd(params: any) {
    return request.post({ url: '/campus/add', params })
}

// 编辑院区表
export function apiCampusEdit(params: any) {
    return request.post({ url: '/campus/edit', params })
}

// 删除院区表
export function apiCampusDelete(params: any) {
    return request.post({ url: '/campus/delete', params })
}

// 院区表详情
export function apiCampusDetail(params: any) {
    return request.get({ url: '/campus/detail', params })
}

// 楼栋信息
export function selectBuilding(params?: any) {
    return request.get({ url: '/campus/selectBuilding', params })
}

// 全院房间信息
export function selectRoomHospital(params?: any) {
    return request.get({ url: '/campus/selectRoomHospital', params })
}

// 公寓房间信息
export function selectRoomApartment(params?: any) {
    return request.get({ url: '/campus/selectRoomApartment', params })
}

// 设备信息
export function selectDevice(params?: any) {
    return request.get({ url: '/campus/selectDevice', params })
}

// 楼栋数据管理
export function dataControl(params?: any) {
    return request.get({ url: '/campus/data_control', params })
}
// 设置
export function dataSet(params: any) {
    return request.post({ url: '/campus/data_set', params })
}
// 快速设置
export function quickSet(params: any) {
    return request.post({ url: '/campus/quick_set', params })
}
